package com.yznote.cloudesk.common.init;

import com.yznote.cloudesk.cache.yCache.YCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class YCacheInit implements ApplicationRunner {
    @Autowired
    YCache yCache;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        yCache.releaseRedisSet();

    }
}
